package org.sky.quartz.job;

import org.apache.logging.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.sky.util.LogUtils;

/**
 * @author weifx
 * @Title: HelloJob
 * @ProjectName springboot-platform
 * @Description: TODO{计划任务测试类}
 * @date 2019/3/15 16:35
 * @Version 1.0
 */
public class HelloJob implements Job {
    private final static Logger log = LogUtils.getLogger(HelloJob.class);
    private static int count = 0;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        count = count+1;
        log.info("计划任务执行了{}次... ...",count);
    }
}
